<?php
declare(strict_types=1);

namespace ImiApp\ApiServer\Backend\Validate;

use Phpben\Imi\Validate\Validate;

class TestValidate extends Validate
{
    protected $rule = [
		'id' => 'require|integer',
		'changeid' => 'require|integer',
		'pid' => 'require|integer',
		'ids' => 'require',
		'changepid' => '',
		'user_id' => 'require',
		'admin_id' => 'require',
		'category_id' => 'require',
		'category_ids' => 'require',
		'tags' => 'require',
		'week' => 'require',
		'flag' => 'require',
		'genderdata' => 'require',
		'hobbydata' => 'require',
		'title' => 'require',
		'content' => 'require',
		'image' => 'require',
		'images' => 'require',
		'attachfile' => 'require',
		'keywords' => 'require',
		'description' => 'require',
		'city' => 'require',
		'json' => 'require',
		'multiplejson' => 'require',
		'price' => 'require',
		'views' => 'require',
		'workrange' => 'require',
		'startdate' => 'require',
		'activitytime' => 'require',
		'year' => 'require',
		'times' => 'require',
		'refreshtime' => 'require',
		'createtime' => 'require',
		'updatetime' => 'require',
		'deletetime' => 'require',
		'switch' => 'require',
		'status' => 'require',
		'state' => 'require',
    ];

    protected $message = [
    ];

    protected $scene = [
        'create' => ['user_id', 'admin_id', 'category_id', 'category_ids', 'tags', 'week', 'flag', 'genderdata', 'hobbydata', 'title', 'content', 'image', 'images', 'attachfile', 'keywords', 'description', 'city', 'json', 'multiplejson', 'price', 'views', 'workrange', 'startdate', 'activitytime', 'year', 'times', 'refreshtime', 'createtime', 'updatetime', 'deletetime', 'switch', 'status', 'state', ],
        'update' => ['id', 'user_id', 'admin_id', 'category_id', 'category_ids', 'tags', 'week', 'flag', 'genderdata', 'hobbydata', 'title', 'content', 'image', 'images', 'attachfile', 'keywords', 'description', 'city', 'json', 'multiplejson', 'price', 'views', 'workrange', 'startdate', 'activitytime', 'year', 'times', 'refreshtime', 'createtime', 'updatetime', 'deletetime', 'switch', 'status', 'state', ],
        'sort' => ['ids','pid','changeid','changepid']        
    ];
}
